package com.hopes.bizz.close.common.constant;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 人员定位 props
 * @time 2023/11/15 14:17
 */
@Data
@Component
@RefreshScope
@ConfigurationProperties(PositionProperties.PREFIX)
public class PositionProperties {

    public static final String PREFIX = "bizz.position";

    private Float cachePositionQueueThreshold = 0.75f;

    /**
     * 缓存定位数据队列容量
     */
    private Integer cachePositionQueueCapacity = 100;

    /**
     * 断网报警阈值 (秒)
     */
    private Integer positionBrokenAlarmThreshold = 600;

    /**
     * 小时时长限制
     */
    private Integer hisPositionTimeLengthLimitHour = 5;

    /**
     * 分钟时长限制
     */
    private Integer hisPositionTimeLengthLimitMinute = 300;

}
